﻿using System.ComponentModel.DataAnnotations;

namespace CatHouse.Models
{
    public class LoginModel
    {
        public int ID { get; set; }

        [Display(ResourceType = typeof(Lib.Lang), Name = "LoginModel_Email")]
        [Required(ErrorMessageResourceType = typeof(Lib.Lang), ErrorMessageResourceName = "LoginModel_Required")]
        [EmailAddress(ErrorMessageResourceType = typeof(Lib.Lang), ErrorMessageResourceName = "LoginModel_EmailValid")]
        public string UserEmail { get; set; }

        [Display(ResourceType = typeof(Lib.Lang), Name = "LoginModel_Password")]
        [Required(ErrorMessageResourceType = typeof(Lib.Lang), ErrorMessageResourceName = "LoginModel_Required")]
        public string Password { get; set; }
    }
}